package cn.icatw.gulimall.product.feign;

import cn.icatw.common.to.es.SkuEsModel;
import cn.icatw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author icatw
 * @date 2022/3/11
 * @email 762188827@qq.com
 * @apiNote
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {
    /**
     * es商品上架
     *
     * @param skuEsModels
     * @return cn.icatw.common.utils.R
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
